# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-imucal
_pkgorig=imucal
pkgver=2.2.1
pkgrel=0
pkgdesc="A Python library to calibrate 6 DOF IMUs"
url="https://github.com/mad-lab-fau/imucal"
arch="noarch !riscv64 !x86" # py3-matplotlib #assertion errors
license="MIT"
depends="
	python3
	py3-h5py
	py3-matplotlib
	py3-numpy
	py3-pandas
	py3-packaging
	py3-typing-extensions
	"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools poetry py3-platformdirs py3-threadpoolctl py3-installer"
source="https://github.com/mad-lab-fau/imucal/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/imucal-$pkgver"

build() {
	GIT_DIR="$builddir" poetry build -f wheel
}

check() {
	python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/imucal-$pkgver-py3-none-any.whl
}

sha512sums="
9a39b8387ec99486844a40a721e0626c723409d28e9b3e6d96bb81274d8b8ac815d51b06f06d0922b88cd1954838b80254e134211b843ac46da22b76dab9b957  imucal-2.2.1.tar.gz
"
